/* 上传页面样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 60px; /* 为导航栏留出空间 */
}

.upload-container {
    max-width: 800px;
    margin: 20px auto 30px;
    padding: 30px;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-container h1 {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.upload-form .form-group {
    margin-bottom: 15px;
    width: 100%;
}

.upload-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.upload-form input[type="text"],
.upload-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.upload-form input[type="text"]:focus,
.upload-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}

.upload-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* 文件上传按钮样式 */
.upload-form input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.upload-form input[type="file"] + label {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.upload-form input[type="file"] + label:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.upload-form input[type="file"] + label:active {
    transform: translateY(0);
}

/* 已选择文件状态 */
.upload-form input[type="file"].has-file + label {
    background-color: rgba(0, 255, 157, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.upload-form input[type="file"].has-file + label:hover {
    background-color: rgba(0, 255, 157, 0.2);
}

.upload-form input[type="file"] + label i {
    margin-right: 8px;
}

.file-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-all;
}

.help-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

.status-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    text-align: center;
}

/* 上传按钮样式 */
.upload-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    align-self: center;
    min-width: 150px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

.upload-btn:disabled {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .upload-container {
        padding: 20px;
        margin-top: 10px;
    }
    
    .upload-form {
        gap: 15px;
    }
} 